#ifndef ALIS_UTILITIES_HEADER
#define ALIS_UTILITIES_HEADER

#include "stdafx.h"

class utilities
{
public:
	utilities();
	~utilities();
	static void EnableFireWall(BOOL bEnable);
	static void AddApplicationToFireWall(char * appName);
};


class myString
{
	char *str;
	unsigned int size;
public:
	myString(char *s);
	myString();
	~myString();
	char* getString();
	void setString(char *s);
	int getSize();
	bool isEmpty();
	
	char* getSubString(char ch, int direction, char* &restOfString);
	// gets the a substring start next to the first occurence of 'ch' from
	// left or right: direction: 0 ==> left  1 ==> right
	// resOfString contains the rest of the string characters
	

	int getCharPos(char ch, int direction);
	// gets the first char 'ch' position  from left or right
	// direction: 0 ==> left  1 ==> right
};

#endif
